package com.crm.jpaandthymeleaf.service.impl;

import com.crm.jpaandthymeleaf.entity.SysRight;
import com.crm.jpaandthymeleaf.entity.SysRole;
import com.crm.jpaandthymeleaf.repository.SysRoleRepository;
import com.crm.jpaandthymeleaf.service.ISysRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 周敬
 * @version 1.0
 * @packageName com.crm.jpaandthymeleaf.service.impl
 * @fileName ISysRoleServiceImpl
 * @createTime 2021/12/15-20:55-星期三
 * @lastModify 2021/12/15-20:55-星期三
 */
@Service
public class ISysRoleServiceImpl implements ISysRoleService {

    @Resource
    private SysRoleRepository sysRoleRepository;

    @Override
    public List<SysRole> findAllSysRole() {
        return sysRoleRepository.findAll();
    }

    /**
     * 按角色查找权限
     *
     * @param sysRole
     * @return
     */
    @Override
    public List<SysRight> findRightsByRole(SysRole sysRole) {
        return null;
    }


}
